package com.dz.goods.service;

import com.dz.common.base.BasePageResultsVO;
import com.dz.goods.domain.entity.Brand;
import com.dz.goods.domain.vo.BrandParamsVO;
import com.dz.goods.domain.vo.BrandResultsVO;

import java.util.List;

public interface BrandService {

    /***
     * 查询所有品牌
     * @return
     */
    List<Brand> findAll()throws Exception;
    Brand findById(Long id)throws Exception;
    Brand add(Brand brand)throws Exception;
    void delete(Long id)throws Exception;
    Brand edit(Brand brand)throws Exception;
    BasePageResultsVO<BrandResultsVO> getBrandList(BrandParamsVO vo)throws Exception;
    List<BrandResultsVO> findByCategory(Long categoryid)throws Exception;
}